<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Shuzhai extends Model
{
    //转让或者交换的图书
    
    protected $table = 'yds_shuzhai';

    protected $primaryKey = 'id';

    //关闭更新  'updated_at`, `created_at' 字段
    public $timestamps = false;

    //用户信息
    public function hasuserinfo()
    {
    	return $this->hasOne('App\Models\UsersReg','uid','uid');
    }

}
